<template>
    <view>
        <button @click="getOpenCode">拿useid</button>
        <button @click="ggAction">来个推送</button>
    </view>
</template>
<script lang="ts" setup>
const getOpenCode = () => {
    uni.login({
        provider: "weixin",
        success(res) {
            console.log("dddd", res);
        },
    });
};
const ggAction = () => {
    uni.requestSubscribeMessage({
        tmplIds: ["zSjDEVm2pkC4RR1N8h622b5_JqWY9wY_7scJhb4_mZ0"],
        success() {},
        fail() {},
    });
};
</script>
<style lang="scss" scoped></style>
